<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
	<h2 id="pagetitle">搜索 &raquo; <?php the_search_query(); ?></h2>
	<?php /*start loop*/ while (have_posts()) : the_post(); ?>
		<div class="post posthome" id="post-<?php the_ID(); ?>">
			<h3 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>

			<div class="postcontent">
				<?php the_excerpt() ?>
			</div>
		</div>
<?php
	endwhile;
	else :
		echo walleve_404_message(); 
	endif;
?>

	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>
</div>
<?php walleve_sidebar() ?>

<?php get_footer(); ?>